package org.xuyuji.DBtoBean.common;

import java.util.HashMap;
import java.util.Map;

public class TypeMap {

	private static Map<String, String> typeMap = new HashMap<String, String>();
	
	static{
		typeMap.put("int", "int");
		typeMap.put("varchar", "String");
		typeMap.put("varchar2", "String");
		typeMap.put("char", "String");
		typeMap.put("date", "Date");
		typeMap.put("datetime", "Date");
		typeMap.put("timestamp", "Date");
		typeMap.put("decimal", "double");
		typeMap.put("numeric", "double");
		typeMap.put("double", "double");
		typeMap.put("number", "double");
		typeMap.put("float", "float");
		typeMap.put("bigint", "long");
	}
	
	private TypeMap(){};

	public static String get(String columnType){
		return typeMap.get(columnType);
	}
}
